import axios from "../axios"

/**
 * 个人信息
 */
export const personInfo=(params)=>{
    return axios({
        url:"/api/person/list",
        method:'get',
        params
    })
}

/**
 * 个人信息更新
 */
export const personInfoUpdate=(params)=>{
    return axios({
        url:"/api/person/update",
        method:'get',
        params
    })
}

/**
 * 注册页面
 */
export const personRegister=(params)=>{
    return axios({
        url:"/api/person/register",
        method:'get',
        params
    })
}

/**
 * 更改手机
 */
export const changePhone=(params)=>{
    return axios({
        url:"/api/person/changePhone",
        method:'get',
        params
    })
}

/**
 * 会员卡页面
 */
export const personMemberCard=(params)=>{
    return axios({
        url:"/api/person/memberCard",
        method:'get',
        params
    })
}

/**
 * 发送短信
 */
export const sendSms=(params)=>{
    return axios({
        url:"/api/sms/index",
        method:'get',
        params
    })
}

/**
 * 邀请好友记录
 */
export const personShareRecord=(params)=>{
    return axios({
        url:"/api/person/shareRecord",
        method:'get',
        params
    })
}

/**
 * 海报生成
 */
export const recommendActivityCreatePoster=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/createQrPoster",
        method:'get',
        params
    })
}

/**
 * 海报活动推荐记录
 */
export const recommendActivityHis=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/recommendhis",
        method:'get',
        params
    })
}

/**
 * 海报活动推荐记录 详细
 */
export const recommendActivityHisDetail=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/recommendhisDetail",
        method:'get',
        params
    })
}

/**
 * 海报活动中奖记录
 */
export const recommendActivitySchedule=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/recommendschedule",
        method:'get',
        params
    })
}


/**
 * 海报活动中奖记录 详细
 */
export const recommendActivityScheduleDetail=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/recommendscheduleDetail",
        method:'get',
        params
    })
}



/**
 *  获取recommendscheduleInfo
 */
export const recommendScheduleInfo=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/recommendscheduleInfo",
        method:'get',
        params
    })
}

/**
 * 收货地址列表
 */
export const userAddressList=(params)=>{
    return axios({
        url:"/api/useraddress/list",
        method:'get',
        params
    })
}

/**
 * 收货地址详细
 */
export const userAddressInfo=(params)=>{
    return axios({
        url:"/api/useraddress/info",
        method:'get',
        params
    })
}

/**
 * 收货地址保存
 */
export const userAddressSave=(params)=>{
    return axios({
        url:"/api/useraddress/save",
        method:'post',
        params
    })
}

/**
 * 收货地址更新
 */
export const userAddressUpdate=(params)=>{
    return axios({
        url:"/api/useraddress/update",
        method:'post',
        params
    })
}

/**
 * 收货地址删除
 */
export const userAddresDelete=(params)=>{
    return axios({
        url:"/api/useraddress/delete",
        method:'get',
        params
    })
}

/**
 * 收货地址选择
 */
export const userAddressSelect=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/updateRecommendScheduleUserAddress",
        method:'post',
        params
    })
}

/**
 *  根据注册人，获取推荐人手机号码相关
 */
export const inviterphone=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/inviterphone",
        method:'get',
        params
    })
}

/**
 * 海报推荐排行榜
 */
export const recommendActivityRanking=(params)=>{
    return axios({
        url:"/api/recommenduserinfo/recommendRanking",
        method:'get',
        params
    })
}